package com.hrt.datasender.datacollect.drive.weigeng;

import java.util.Date;
import java.util.List;

import com.btcode.orm.model.IDomainField;
import com.btcode.orm.model.IField;
import com.btcode.orm.model.IModelAddition;
import com.btcode.orm.relation.ex.IRelation;

public class BdDoorAccessModelAddition implements IModelAddition<BdDoorAccessModel> {

    @Override
    public void generateDefaultValue(BdDoorAccessModel model) {

        model.setId(model.getControlNo() + "_" + model.getCarNo() + "_" + model.getRecordDatetime() + "_"
                + model.getdoorMagnetism());

        model.setDatatime(new Date());
    }

    @Override
    public void initField(List<IField> fields) {
        // TODO Auto-generated method stub

    }

    @Override
    public void initRelations(List<IRelation> relations) {
        // TODO Auto-generated method stub

    }

    @Override
    public void initDomainField(List<IDomainField> domainFields) {
        // TODO Auto-generated method stub

    }

    @Override
    public void beforeCreate(BdDoorAccessModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void afterCreate(BdDoorAccessModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void beforeUpdate(BdDoorAccessModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void afterUpdate(BdDoorAccessModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void beforeDelete(BdDoorAccessModel model) {
        // TODO Auto-generated method stub

    }

    @Override
    public void afterDelete(BdDoorAccessModel model) {
        // TODO Auto-generated method stub

    }

}
